home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Mail / pine3.92 / contrib / vms / vmsbuild_cclient.com < prev    next >
Text File  |  1994-08-10  |  4KB  |  104 lines

  1. $! Program:    Operating-system dependent routines -- VMS version
  2. $!
  3. $! Author:    Yehavi Bourvine, The Hebrew University of Jerusalem.
  4. $!        Internet: Yehavi@VMS.huji.ac.il
  5. $!
  6. $! Date:    2 August 1994
  7. $! Last Edited:    2 August 1994
  8. $!
  9. $! Copyright 1994 by the University of Washington
  10. $!
  11. $!  Permission to use, copy, modify, and distribute this software and its
  12. $! documentation for any purpose and without fee is hereby granted, provided
  13. $! that the above copyright notice appears in all copies and that both the
  14. $! above copyright notice and this permission notice appear in supporting
  15. $! documentation, and that the name of the University of Washington not be
  16. $! used in advertising or publicity pertaining to distribution of the software
  17. $! without specific, written prior permission.    This software is made available
  18. $! "as is", and
  19. $! THE UNIVERSITY OF WASHINGTON DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED,
  20. $! WITH REGARD TO THIS SOFTWARE, INCLUDING WITHOUT LIMITATION ALL IMPLIED
  21. $! WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, AND IN
  22. $! NO EVENT SHALL THE UNIVERSITY OF WASHINGTON BE LIABLE FOR ANY SPECIAL,
  23. $! INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  24. $! LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, TORT
  25. $! (INCLUDING NEGLIGENCE) OR STRICT LIABILITY, ARISING OUT OF OR IN CONNECTION
  26. $! WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  27. $!
  28. $! VMSBUILD.COM for C-CLIENT.
  29. $ CREATE LINKAGE.H
  30. $ DECK
  31. extern DRIVER imapdriver, nntpdriver, vmsmaildriver;
  32. $ EOD
  33. $ CREATE LINKAGE.C
  34. $ DECK
  35.     mail_link((DRIVER *)&imapdriver);
  36.     mail_link((DRIVER *)&nntpdriver);
  37.     mail_link((DRIVER *)&vmsmaildriver);
  38. $ EOD
  39. $!
  40. $ DEFINE SYS SYS$LIBRARY:        ! Normal .H location.
  41. $ DEFINE NETINET SYS$LIBRARY:
  42. $ DEFINE ARPA SYS$LIBRARY:
  43. $!
  44. $ COPY OS_VMS.H OSDEP.H;
  45. $ COPY TCP_VMSN.C TCP_VMS.C;    ! Default - no TcpIp support.
  46. $!
  47. $ CC_DEF = ",''P1'"
  48. $ LINK_OPT = ""
  49. $ IF P1 .EQS. "" THEN CC_DEF=""
  50. $ IF F$LOCATE("MULTINET", P1) .LT. F$LENGTH(P1)
  51. $ THEN
  52. $    DEFINE SYS MULTINET_ROOT:[MULTINET.INCLUDE.SYS],sys$library
  53. $    DEFINE NETINET MULTINET_ROOT:[MULTINET.INCLUDE.NETINET]
  54. $    DEFINE ARPA MULTINET_ROOT:[MULTINET.INCLUDE.ARPA]
  55. $    COPY TCP_VMSM.C TCP_VMS.C;    ! Multinet support.
  56. $    LINK_OPT = ",[-.CONTRIB.VMS]VMS_MULTINET_LINK/OPTION"
  57. $ ENDIF
  58. $ IF F$LOCATE("NETLIB", P1) .LT. F$LENGTH(P1)
  59. $ THEN
  60. $    LINK_OPT = ",[-.CONTRIB.VMS]VMS_NETLIB_LINK/OPTION"
  61. $    COPY TCP_VMSL.C TCP_VMS.C;    ! Netlib support.
  62. $ ENDIF
  63. $!
  64. $ CC_PREF = ""
  65. $ IF F$LOCATE("VAX", F$GETSYI("HW_NAME")) .EQS. F$LENGTH(F$GETSYI("HW_NAME"))
  66. $ THEN
  67. $    CC_PREF = "/PREFIX=(ALL,EXCEPT=(SOCKET,CONNECT,BIND,LISTEN,SOCKET_READ,SOCKET_WRITE,SOCKET_CLOSE,SELECT,ACCEPT,BCMP,BCOPY,BZERO,GETHOSTBYNAME,"
  68. $    CC_PREF = CC_PREF + "GETHOSTBYADDR,GETPEERNAME,GETDTABLESIZE,HTONS,HTONL,NTOHS,NTOHL,SEND,SENDTO,RECV,RECVFROM))"
  69. $    CC_PREF = CC_PREF + "/STANDARD=VAXC"
  70. $ ELSE
  71. $    CC_PREF = "/INCLUDE=[]"
  72. $    LINK_OPT = LINK_OPT + ",[-.CONTRIB.VMS]VMS_LINK/OPTION"
  73. $    COPY SYS$LIBRARY:CTYPE.H *.*;
  74. $    EDIT/EDT CTYPE.H
  75. s/readonly// w
  76. exit
  77. $ ENDIF
  78. $ SET VERIFY
  79. $ CC/NOOPTIMIZE'CC_PREF'/define=("readonly"="ReadOnly"'cc_def') OS_VMS
  80. $ CC/NOOPTIMIZE'CC_PREF'/define=("readonly"="ReadOnly"'cc_def') vms_mail
  81. $ CC/NOOPTIMIZE'CC_PREF'/define=("readonly"="ReadOnly"'cc_def') MAIL
  82. $ CC/NOOPTIMIZE'CC_PREF'/define=("readonly"="ReadOnly"'cc_def') SMTP
  83. $ CC/NOOPTIMIZE'CC_PREF'/define=("readonly"="ReadOnly"'cc_def') RFC822
  84. $ CC/NOOPTIMIZE'CC_PREF'/define=("readonly"="ReadOnly"'cc_def') NNTP
  85. $ CC/NOOPTIMIZE'CC_PREF'/define=("readonly"="ReadOnly"'cc_def') nntpcvms
  86. $ CC/NOOPTIMIZE'CC_PREF'/define=("readonly"="ReadOnly"'cc_def') MISC
  87. $ CC/NOOPTIMIZE'CC_PREF'/define=("readonly"="ReadOnly"'cc_def') IMAP2
  88. $ CC/NOOPTIMIZE'CC_PREF'/define=("readonly"="ReadOnly"'cc_def', -
  89.   L_SET=0) SM_VMS
  90. $!
  91. $ CC/NOOPTIMIZE'CC_PREF'/define=("readonly"="ReadOnly"'cc_def') MTEST
  92. $! CC/NOOPTIMIZE'CC_PREF'/define=("readonly"="ReadOnly"'cc_def') IMAPD
  93. $!
  94. $ LIBRARY/OBJECT/CREATE/INSERT C-CLIENT OS_VMS,vms_mail,MAIL,SMTP,RFC822,-
  95.     NNTP,nntpcvms,MISC,IMAP2,SM_VMS
  96. $!
  97. $ SET NOVERIFY
  98. $ LINK MTEST,IMAP2,MAIL,MISC,NNTP,nntpcvms,OS_VMS,RFC822,SMTP,-
  99.   SM_VMS,VMS_MAIL,SYS$INPUT:/OPTION'LINK_OPT'
  100. PSECT=_CTYPE_,NOWRT
  101. $! LINK IMAPD,imapd_vms,IMAP2,MAIL,MISC,NNTP,nntpcvms,OS_VMS,RFC822,SMTP,-
  102. $!   SM_VMS,VMS_MAIL'LINK_OPT'
  103. $ EXIT
  104.